import request from '@/utils/request'

export function getSchedule(data) {
  return request({
    url: 'api/doctor/getSchedule',
    method: 'put',
    data: data
  })
}
export function deleteSchedule(data) {
  return request({
    url: 'api/doctor/deleteSchedule',
    method: 'post',
    data: data
  })
}

export function insertSchedule(data) {
  return request({
    url: 'api/doctor/insertSchedule',
    method: 'put',
    data: data
  })
}

export function updateSchedule(data) {
  return request({
    url: 'api/doctor/updateSchedule',
    method: 'put',
    data: data
  })
}

// 获取体检排班
export function selectSourece(data) {
  return request({
    url: 'api/doctor/selectSourece',
    method: 'put',
    data: data
  })
}
// 添加体检排班
export function insertSourece(data) {
  return request({
    url: 'api/doctor/insertSourece',
    method: 'put',
    data: data
  })
}
// 删除排班
export function deleteSourece(data) {
  return request({
    url: 'api/doctor/deleteSourece',
    method: 'put',
    data: data
  })
}

export function updateregister(data) {
  return request({
    url: 'api/doctor/updateregister',
    method: 'put',
    data: data
  })
}



// export default {  getSchedule,deleteSchedule,insertSchedule }
